package com.sunchangpeng.server.nio.basic;

public class TimeServer {
    private Dispatcher dispatcher;

    public TimeServer() {
        this.dispatcher = new Dispatcher();
    }

    public TimeServer start(int port) {
        this.dispatcher.start(port);
        return this;
    }

    public void dispatch() {
        this.dispatcher.dispatch();
    }
}
